﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp2
{
    class ComputerMajor :IComoute 
    {
        
        
            public int Id { get; set; } 
        public string Name { get; set; } 
         public double English { get; set; }
        public double Programming { get; set; }
        public double Database { get; set; }
        public string Sex {
            get => throw new NotImplementedException();
            set => throw new NotImplementedException();
        }

        public void Avg() {
            double avg = (English + Programming + Database) / 3;
            Console.WriteLine("平均分：" + avg); }

        public double Sum()
        {
            throw new NotImplementedException();
        }

        public void Total() {
            double sum = English + Programming + Database;
            Console.WriteLine("总分为：" + sum); }

        double IComoute.Avg()
        {
            throw new NotImplementedException();
        }

        double IComoute.Total()
        {
            throw new NotImplementedException();
        }
    }
        
}
